/********************************************************************
  Copyright by PCI, 2002-10-08
  File Name: db_prod_cfg_ppm_attr_rela_his.cxx
  Created Date: 2002-10-08 
  Author: Machine
  Version: 1.0 
  Last Version Date: 
  Version Date:
*******************************************************************/
/********************************************************************
  Copyright by PCI, 2002-10-08
  Class Name: CTable_PROD_CFG_PPM_ATTR_RELA_HIS
  Created Date: 2002-10-08 
  Author: Machine
  Defined File: db_prod_cfg_ppm_attr_rela_his.hxx
  Last Version Date: 
  Version Date:
*******************************************************************/
#include "table_ppm.h"

CTable_PROD_CFG_PPM_ATTR_RELA_HIS::CTable_PROD_CFG_PPM_ATTR_RELA_HIS( )
 :NPCRecordSet( )
{
  setTableName( "PROD_CFG_PPM_ATTR_RELA_HIS" );
  prepareTable();
  prepareQuery();
 
  HIS_ID.setField( "HIS_ID", DATA_CHAR, 20, 1 );
  makeTableItem( HIS_ID );
  makeKeyItem( HIS_ID ); 
  RELA_ID.setField( "RELA_ID", DATA_DOUBLE, 22, 0 );
  makeTableItem( RELA_ID );
  PPM_ATTR_ID.setField( "PPM_ATTR_ID", DATA_CHAR, 20, 0 );
  makeTableItem( PPM_ATTR_ID );
  CRM_CFG_ID.setField( "CRM_CFG_ID", DATA_DOUBLE, 22, 0 );
  makeTableItem( CRM_CFG_ID );
  RELA_TYPE.setField( "RELA_TYPE", DATA_CHAR, 20, 0 );
  makeTableItem( RELA_TYPE );
  CREATE_DATE.setField( "CREATE_DATE", DATA_DATETIME, 7, 0 );
  makeTableItem( CREATE_DATE );
  MODIFY_DATE.setField( "MODIFY_DATE", DATA_DATETIME, 7, 0 );
  makeTableItem( MODIFY_DATE );
  REMARKS.setField( "REMARKS", DATA_CHAR, 512, 0 );
  makeTableItem( REMARKS );
}


CTable_PROD_CFG_PPM_ATTR_RELA_HIS::CTable_PROD_CFG_PPM_ATTR_RELA_HIS( NPConnection& pcldb )
 :NPCRecordSet( pcldb )
{
  setTableName( "PROD_CFG_PPM_ATTR_RELA_HIS" );
  prepareTable();
  prepareQuery();
 
  HIS_ID.setField( "HIS_ID", DATA_CHAR, 20, 1 );
  makeTableItem( HIS_ID );
  makeKeyItem( HIS_ID ); 
  RELA_ID.setField( "RELA_ID", DATA_DOUBLE, 22, 0 );
  makeTableItem( RELA_ID );
  PPM_ATTR_ID.setField( "PPM_ATTR_ID", DATA_CHAR, 20, 0 );
  makeTableItem( PPM_ATTR_ID );
  CRM_CFG_ID.setField( "CRM_CFG_ID", DATA_DOUBLE, 22, 0 );
  makeTableItem( CRM_CFG_ID );
  RELA_TYPE.setField( "RELA_TYPE", DATA_CHAR, 20, 0 );
  makeTableItem( RELA_TYPE );
  CREATE_DATE.setField( "CREATE_DATE", DATA_DATETIME, 7, 0 );
  makeTableItem( CREATE_DATE );
  MODIFY_DATE.setField( "MODIFY_DATE", DATA_DATETIME, 7, 0 );
  makeTableItem( MODIFY_DATE );
  REMARKS.setField( "REMARKS", DATA_CHAR, 512, 0 );
  makeTableItem( REMARKS );
}

CTable_PROD_CFG_PPM_ATTR_RELA_HIS::~CTable_PROD_CFG_PPM_ATTR_RELA_HIS( )
{
    close();
}

